home *** CD-ROM | disk | FTP | other *** search
- #define __VERSION__ "39"
- #define __REVISION__ "8"
- #define __NAME__ "Gallery"
- #define __AUTHOR__ "Markus Hillenbrand"
-
- /*********************************************************************************************************/
-
- #include <string.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <stream.h>
-
- #include "GUICINCLUDE:GUIC_System.hpp"
- #include "GUICINCLUDE:GUIC_Application.hpp"
- #include "GUICINCLUDE:GUIC_Screen.hpp"
- #include "GUICINCLUDE:GUIC_Message.hpp"
- #include "GUICINCLUDE:GUIC_Event.hpp"
- #include "GUICINCLUDE:GUIC_Error.hpp"
- #include "GUICINCLUDE:GUIC_Exceptions.hpp"
- #include "GUICINCLUDE:GUIC_AmigaGuide.hpp"
- #include "GUICINCLUDE:GUIC_FileExamine.hpp"
-
- #include "GalleryWindow.hpp"
-
- /*********************************************************************************************************/
-
- STRPTR V = "$VER: " __NAME__ " " __VERSION__ "." __REVISION__ " (" __DATE__ ")";
-
- /*********************************************************************************************************/
-
- VOID main (LONG argc, STRPTR argv[])
- {
- GUIC_SystemC::checkStackSize(50000);
-
- GUIC_ApplicationC app(__NAME__);
-
- app.setAuthor (__AUTHOR__);
- app.setVersion (__VERSION__);
- app.setRevision (__REVISION__);
- app.setDate (__DATE__);
- app.setTime (__TIME__);
- app.setInitializer (TRUE);
-
- GUIC_AmigaGuideC amigaGuide("Gallery.guide");
- GUIC_ScreenC screen;
- GalleryWindowC gWindow (app, screen);
-
- screen.setName ("Gallery - (c) by Markus Hillenbrand");
- screen.setPublicMode (TRUE);
- screen.setPublicName ("Gallery Pubscreen");
-
- screen.add(gWindow);
-
- app.add(amigaGuide);
- app.add(screen);
- app.start();
-
- BOOL running = TRUE;
- GUIC_EventC *event = 0;
-
- LONG count = 0;
-
- while (running && (event = app.wait()) )
- {
- if (event->id == GUIC_CloseWindow)
- {
- GUIC_MessageC message ("Gallery", "Do you really want to quit ?", "Yes|No");
- if (1 == message.request(*event->window)) running = FALSE;
- }
- }
-
- app.stop();
- }
-
-